/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tutorial.DesignPatterns.Visitor;

import tutorial.DesignPatterns.Visitor.interfaces.Visitor;

/**
 *
 * @author Boogie
 */
public class ThisAndThatVisitor implements Visitor {

    /*
     * Implementarea Visitatorului
     */
    @Override
    public void visitThis(This thiz) {
        System.out.println("A Litle bit of " + thiz.getThis());
    }

    @Override
    public void visitThat(That that) {
        System.out.println("A Litle bit of " + that.getThat());
    }

    @Override
    public void visitTheOther(TheOther theOther) {
        System.out.println("But not much of " + theOther.getOther());
    }
}
